From: Carlos Garnacho Date: Fri, 13 Dec 2019 17:14:51 +0000 (+0100) Subject: workspace: Pass device to startDrag() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~309 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9115f6e7962b97c3ee2fbef7b195b7116e62c070;p=gnome-shell.git workspace: Pass device to startDrag() This is necessary to make DnD operations work from tablet devices on wayland, as it's not the same onscreen pointer sprite than mice. Fixes window DnD in the overview on tablet devices, no longer having them stick to the wrong pointer. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/897 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 1e9bedc28..d470f7f40 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -431,7 +431,7 @@ var WindowClone = GObject.registerClass({ return; let [x, y] = action.get_coords(); action.release(); - this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence); + this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence, event.get_device()); }); } else { this.emit('show-chrome');